package com.byzx.wine.jdbcdao;

import java.util.Map;

import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.byzx.wine.model.MyBatisPaginate;
import com.byzx.wine.util.Page;
@Repository
public class BaseDao{
	@Autowired
	SqlSessionTemplate sqlSession;
	@Autowired
	MyBatisPaginate myBatisPaginate;
	
	public Page<Map<String,Object>> findPage(String sqlid,Page<Map<String,Object>> page1){
		Page<Map<String,Object>> page=null;
		page =myBatisPaginate.execQueryPage(sqlid, page1);
		return page1;
	}
	

}
